﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KBC_Quiz_Show.Object
{
    class Question
    {
        private int quesID;

        public int QuesID
        {
            get { return quesID; }
            set { quesID = value; }
        }
        private string quesContent;

        public string QuesContent
        {
            get { return quesContent; }
            set { quesContent = value; }
        }
        private string ans1;

        public string Ans1
        {
            get { return ans1; }
            set { ans1 = value; }
        }
        private string ans2;

        public string Ans2
        {
            get { return ans2; }
            set { ans2 = value; }
        }
        private string ans3;

        public string Ans3
        {
            get { return ans3; }
            set { ans3 = value; }
        }
        private string ans4;

        public string Ans4
        {
            get { return ans4; }
            set { ans4 = value; }
        }
        private int level;

        public int Level
        {
            get { return level; }
            set { level = value; }
        }
        private string anstrue;

        public string Anstrue
        {
            get { return anstrue; }
            set { anstrue = value; }
        }

        public Question()
        {
            quesID = 0;
            quesContent = "";
            ans1 = "";
            ans2 = "";
            ans3 = "";
            ans4 = "";
            level = 0;
            anstrue = "";
        }

        public Question(int quesID, string quesContent, string ans1, string ans2, string ans3, string ans4, int level, string anstrue)
        {
            this.quesID = quesID;
            this.quesContent = quesContent;
            this.ans1 = ans1;
            this.ans2 = ans2;
            this.ans3 = ans3;
            this.ans4 = ans4;
            this.level = level;
            this.anstrue = anstrue;
        }
        public void copyFrom(Question b) //copy b  vao this
        {
            this.quesID = b.quesID;
            this.quesContent = b.quesContent;
            this.ans1 = b.ans1;
            this.ans2 = b.ans2;
            this.ans3 = b.ans3;
            this.ans4 = b.ans4;
            this.level = b.level;
            this.anstrue = b.anstrue;
        }
    }
}
